export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  labelWidth: 120,
  selection: true,
  searchMenuSpan: 6,
  delBtn: false,
  addBtn: false,
  editBtn: false,
  viewBtn: true,
  "column": [{
    "type": "input",
    "label": "唯一标识",
    "prop": "id",
    hide: true,
    display: false
  }, {
    "type": "select",
    "label": "线路",
    "prop": "lineCode",
    cascaderItem: ["stationCode", "stationPersonCode"],
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamline/dict",
    search: true,
    rules: [{
      required: true,
      message: '请选择线路名称'
    }]
  }, {
    "type": "select",
    "label": "站点",
    "prop": "stationCode",
    dicFlag: false,
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamstation/dict/{{key}}",
    search: true,
    width: 120,
    rules: [{
      required: true,
      message: '请选择车站名称'
    }]
  },  {
    "type": "select",
    "label": "车站人员",
    "prop": "stationPersonCode",
    dicFlag: false,
    props: {
      label: 'nikename',
      value: 'userCode'
    },
    // params: {
    //   userCodeKey: 'stationPersonCode',
    // },
    dicUrl: `/admin/user/page/byStation/{{key}}`,
    search: true,
    //hide: true,
    //display: false,
    rules: [{
      required: true,
      message: '请选择车站人员'
    }]
  },
  //  {
  //   "type": "select",
  //   "label": "车站人员",
  //   "prop": "stationPersonName",
  //   rules: [{
  //     required: true,
  //     message: '请选择车站人员'
  //   }]
  // },
  {
    "type": "input",
    "label": "员工号",
    "prop": "stationPersonCode",
    disabled: true,
  }, {
    "type": "select",
    "label": "设备类型",
    "prop": "machineType",
    dicUrl: '/admin/dict/type/epm_ex_ticket_operation_machine',
    rules: [{
      required: true,
      message: '请选择设备类型'
    }]

  }, {
    "type": "input",
    "label": "设备编号",
    "prop": "machineCode",
    rules: [{
      required: true,
      message: '请输入设备编号'
    }]
  }, {
    "type": "number",
    "label": "涉及金额",
    "prop": "involveMonet",
    precision: 2,
    rules: [{
      required: true,
      message: '请输入涉及金额'
    }]
  }, {
    "type": "number",
    "label": "反馈期限",
    "prop": "backTimeLimit",
    search: true,
    rules: [{
      required: true,
      message: '请输入反馈期限'
    }]

  }, {
    "type": "upload",
    "label": "附件",
    "prop": "file",
    component: 'zd-upload',
    dataType: 'string',
    limit: 1,
    hide: true,
    span: 24,
    editDisplay: false
  }, {
    "type": "upload",
    "label": "图片",
    "prop": "picture",
    component: 'zd-upload',
    listType: 'picture-img',
    hide: true,
    span: 24,
    editDisplay: false
  }, {
    "type": "textarea",
    "label": "差异描述",
    "prop": "diffCase",
    span: 24,
    width: '240px',
    //disabled: true,
    rules: [{
      required: true,
      message: '请输入差异描述'
    }]
  }, {
    "type": "textarea",
    "label": "反馈结果",
    "prop": "backResult",
    width: '240px',
    span: 24,
    addDisplay: false,
    editDisplay: false
  }, {
    "type": "datetime",
    "label": "反馈时间",
    "prop": "backTime",
    //search: true,
    addDisplay: false,
    editDisplay: false,
    width: 90
  }, {
    "type": "select",
    "label": "通知状态",
    "prop": "noticeStatus",
    searchValue: '0',//默认未通知
    search: true,
    dicUrl: '/admin/dict/type/epm_ex_ticket_operation_notice',
    addDisplay: false,
    editDisplay: false
  }, {
    "type": "date",
    "label": "通知时间",
    "prop": "noticeTime",
    addDisplay: false,
    editDisplay: false,
    format: "yyyy-MM-dd",
    valueFormat: "yyyy-MM-dd",
    search: true,
    searchRange: true,
    searchSpan: 12,
    width: 90
  }, {
    "type": "select",
    "label": "发送短款状态",
    "prop": "sendShortStatus",
    dicUrl: '/admin/dict/type/epm_ex_ticket_operation_send',
    hide: true,
    display: false
  }, {
    "type": "input",
    "label": "反馈状态",
    "prop": "backStatus",
    hide: true,
    display: false,
  }, {
    "type": "input",
    "label": "部门id",
    "prop": "deptId",
    hide: true,
    display: false,
  }, {
    "type": "input",
    "label": "创建人id",
    "prop": "creatorId",
    hide: true,
    display: false,
  }, {
    "type": "input",
    "label": "创建人",
    "prop": "creatorName",
    hide: true,
    display: false,
  }, {
    "type": "input",
    "label": "创建时间",
    "prop": "createTime",
    hide: true,
    display: false,
  }, {
    "type": "input",
    "label": "修改时间",
    "prop": "updateTime",
    hide: true,
    display: false,
  }]
}

export const tableAddOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  labelWidth: 120,
  selection: true,
  searchMenuSpan: 6,
  delBtn: false,
  viewBtn: true,
  submitBtn:false,
  emptyBtn:false,
  "column": [{
    "type": "input",
    "label": "唯一标识",
    "prop": "id",
    hide: true,
    display: false
  },{
    label: "线路",
    prop: "lineCode",
    type: "select",
    labelWidth: 130,
    formslot: true,
    rules: [
      {
        required: true,
        message: "请选择线路",
        trigger: "blur"
      }
    ]
  },
  {
    label: "站点",
    prop: "stationCode",
    type: "select",
    labelWidth: 130,
    formslot: true,
    rules: [
      {
        required: true,
        message: "请选择站点",
        trigger: "blur"
      }
    ]
  }, {
    label: "车站人员",
    prop: "stationPersonName",
    labelWidth: 130,
    type: "select",
    formslot: true,
    rules: [
      {
        required: true,
        message: "请选择人员",
        trigger: "blur"
      }
    ]
  },
  {
    label: "员工号",
    prop: "stationPersonCode",
    labelWidth: 130,
    type: "select",
    formslot: true,
  }, {
    "type": "select",
    "label": "设备类型",
    "prop": "machineType",
    dicUrl: '/admin/dict/type/epm_ex_ticket_operation_machine',
    rules: [{
      required: true,
      message: '请选择设备类型'
    }]

  }, {
    "type": "input",
    "label": "设备编号",
    "prop": "machineCode",
    rules: [{
      required: true,
      message: '请输入设备编号'
    }]
  }, {
    "type": "number",
    "label": "涉及金额",
    "prop": "involveMonet",
    precision: 2,
    rules: [{
      required: true,
      message: '请输入涉及金额'
    }]
  }, {
    "type": "number",
    "label": "反馈期限",
    "prop": "backTimeLimit",
    search: true,
    rules: [{
      required: true,
      message: '请输入反馈期限'
    }]

  }, 
   {
    "type": "textarea",
    "label": "差异描述",
    "prop": "diffCase",
    span: 24,
    rules: [{
      required: true,
      message: '请输入差异描述'
    }]
  }]
}
